<?php
    class Admincp_Form_ValidateNews
    {
        public function validTitle($title)
        {
            $validate = new Zend_Validate_StringLength(1,200);
		    if($validate->isValid($title)) {
		        return true;
		    }
		    else {
		        return false;
		    }
        }
        
        public function validImage($image)
        {
            $validate = new Zend_Validate_NotEmpty();
		    if($validate->isValid($image)) {
		        return true;
		    }
		    else {
		        return false;
		    }
        }
        
        public function validDescription($description)
        {
            $validate = new Zend_Validate_NotEmpty();
            if($validate->isValid($description)) {
                return true;
            }
            else {
                return false;
            }
        }
    }
